package com.why.constantpool;

import com.why.basictype.U8;

import java.io.InputStream;

/**
 * @author by xiaoTian
 * @date 2022/5/21.
 */
public class ConstantLongInfo extends ConstantPoolInfo{

    private long bytes;

    public ConstantLongInfo(byte tag){
        setTag(tag);
    }


    @Override
    public void read(InputStream inputStream) {
        U8 u8 = U8.read(inputStream);
        this.bytes = u8.getValue();
    }

    @Override
    public String toString() {
        return "ConstantLongInfo{" +
                "bytes=" + bytes +
                '}';
    }
}
